home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / misc / chemistr / chem101.sit / Chem 101 / card_45127.txt < prev    next >
Text File  |  1989-08-27  |  8KB  |  339 lines

  1. -- card: 45127 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 44309
  5. -- name: Workbook Demo
  6. ----- HyperTalk script -----
  7. on opencard
  8.   --put empty into fld text
  9. end opencard
  10.  
  11.  
  12.  
  13. -- part 8 (button)
  14. -- low flags: 00
  15. -- high flags: 0000
  16. -- rect: left=330 top=28 right=47 bottom=496
  17. -- title width / last selected line: 0
  18. -- icon id / first selected line: 0 / 0
  19. -- text alignment: 1
  20. -- font id: 0
  21. -- text size: 12
  22. -- style flags: 0
  23. -- line height: 16
  24. -- part name: New Button
  25. ----- HyperTalk script -----
  26. on mouseWithin
  27.   put "This area indicates the current exercise." into cd fld text
  28. end mouseWithin
  29.  
  30.  
  31.  
  32. -- part 10 (button)
  33. -- low flags: 00
  34. -- high flags: 0000
  35. -- rect: left=2 top=134 right=313 bottom=257
  36. -- title width / last selected line: 0
  37. -- icon id / first selected line: 0 / 0
  38. -- text alignment: 1
  39. -- font id: 0
  40. -- text size: 12
  41. -- style flags: 0
  42. -- line height: 16
  43. -- part name: New Button
  44. ----- HyperTalk script -----
  45. on mouseWithin
  46.   put "This is your work area. Type into this field to record your work." into cd fld text
  47. end mouseWithin
  48.  
  49.  
  50.  
  51. -- part 11 (button)
  52. -- low flags: 00
  53. -- high flags: 0000
  54. -- rect: left=257 top=135 right=312 bottom=509
  55. -- title width / last selected line: 0
  56. -- icon id / first selected line: 0 / 0
  57. -- text alignment: 1
  58. -- font id: 0
  59. -- text size: 12
  60. -- style flags: 0
  61. -- line height: 16
  62. -- part name: Show Solution
  63. ----- HyperTalk script -----
  64. on mouseWithin
  65.   put "This area shows the solution to the exercise. The 'Show Solution' button below controls this area." into cd fld text
  66. end mouseWithin
  67.  
  68.  
  69.  
  70.  
  71. -- part 13 (field)
  72. -- low flags: 01
  73. -- high flags: 2004
  74. -- rect: left=169 top=106 right=165 bottom=406
  75. -- title width / last selected line: 0
  76. -- icon id / first selected line: 0 / 0
  77. -- text alignment: 1
  78. -- font id: 0
  79. -- text size: 12
  80. -- style flags: 8192
  81. -- line height: 16
  82. -- part name: text
  83.  
  84.  
  85. -- part 14 (button)
  86. -- low flags: 00
  87. -- high flags: A004
  88. -- rect: left=398 top=318 right=341 bottom=440
  89. -- title width / last selected line: 0
  90. -- icon id / first selected line: 0 / 0
  91. -- text alignment: 1
  92. -- font id: 0
  93. -- text size: 12
  94. -- style flags: 8192
  95. -- line height: 16
  96. -- part name: Hints
  97. ----- HyperTalk script -----
  98. on mouseUp
  99.   if the visible of fld Hints is true then
  100.     hide fld Hints
  101.   else
  102.     show fld Hints
  103.   end if
  104. end mouseUp
  105.  
  106. on mousewithin
  107.   put "Press this button to receive help doing the question." into cd fld text
  108. end mousewithin
  109.  
  110.  
  111. -- part 15 (button)
  112. -- low flags: 00
  113. -- high flags: A004
  114. -- rect: left=299 top=318 right=341 bottom=399
  115. -- title width / last selected line: 0
  116. -- icon id / first selected line: 0 / 0
  117. -- text alignment: 1
  118. -- font id: 0
  119. -- text size: 12
  120. -- style flags: 8192
  121. -- line height: 16
  122. -- part name: Show Solution
  123. ----- HyperTalk script -----
  124. on mouseUp
  125.   get the short name of me
  126.   put it into tester
  127.   if word 1 of tester = "Hide" then
  128.     hide fld Solution
  129.     set the name of me to "Show Solution"
  130.   else
  131.     show fld Solution
  132.     set the name of me to "Hide Solution"
  133.   end if
  134. end mouseUp
  135.  
  136. on mousewithin
  137.   put "Press this button to show and hide the answer." into cd fld text
  138. end mouseWithin
  139.  
  140.  
  141.  
  142. -- part 16 (button)
  143. -- low flags: 00
  144. -- high flags: 2000
  145. -- rect: left=10 top=312 right=342 bottom=45
  146. -- title width / last selected line: 0
  147. -- icon id / first selected line: 24539 / 24539
  148. -- text alignment: 1
  149. -- font id: 0
  150. -- text size: 12
  151. -- style flags: 0
  152. -- line height: 16
  153. -- part name: Home
  154. ----- HyperTalk script -----
  155. on mouseUp
  156.   go home
  157. end mouseUp
  158.  
  159. on  mousewithin
  160.   put "Press this button to go to the Home stack." into cd fld text
  161. end mousewithin
  162.  
  163.  
  164.  
  165. -- part 17 (button)
  166. -- low flags: 00
  167. -- high flags: 2000
  168. -- rect: left=47 top=313 right=342 bottom=85
  169. -- title width / last selected line: 0
  170. -- icon id / first selected line: 1141 / 1141
  171. -- text alignment: 1
  172. -- font id: 0
  173. -- text size: 12
  174. -- style flags: 0
  175. -- line height: 16
  176. -- part name: Back to periodic
  177. ----- HyperTalk script -----
  178. on mouseUp
  179.   visual effect dissolve
  180.   set cursor to 4
  181.   go to card ID 12855
  182. end mouseUp
  183.  
  184. on mousewithin
  185.   put "Press this button to go to the Periodic Table." into cd fld text
  186. end  mousewithin
  187.  
  188.  
  189.  
  190.  
  191. -- part 18 (button)
  192. -- low flags: 00
  193. -- high flags: 2000
  194. -- rect: left=125 top=312 right=342 bottom=158
  195. -- title width / last selected line: 0
  196. -- icon id / first selected line: 17400 / 17400
  197. -- text alignment: 1
  198. -- font id: 0
  199. -- text size: 12
  200. -- style flags: 0
  201. -- line height: 16
  202. -- part name: Exercises
  203. ----- HyperTalk script -----
  204. on mouseUp
  205.   visual effect dissolve
  206.   go to card "Workbook"
  207. end mouseUp
  208.  
  209. on mousewithin
  210.   put "Press this button to go to the beginning of the Workbook." into cd fld text
  211. end mousewithin
  212.  
  213.  
  214.  
  215. -- part 19 (button)
  216. -- low flags: 00
  217. -- high flags: 2000
  218. -- rect: left=87 top=312 right=341 bottom=122
  219. -- title width / last selected line: 0
  220. -- icon id / first selected line: 5081 / 5081
  221. -- text alignment: 1
  222. -- font id: 0
  223. -- text size: 12
  224. -- style flags: 0
  225. -- line height: 16
  226. -- part name: Print
  227. ----- HyperTalk script -----
  228. on mouseUp
  229.   answer "Print Card or Report ?" with "Card" or "Report" or "Cancel"
  230.   if it is "Cancel" then exit mouseup
  231.   else
  232.     if it is "Report" then domenu Print Report...
  233.     else
  234.       domenu Print Card
  235.     end if
  236.   end if
  237. end mouseUp
  238.  
  239. on mousewithin
  240.   put "Press this button to print a card or report." into cd fld text
  241. end mousewithin
  242.  
  243.  
  244. -- part 20 (button)
  245. -- low flags: 00
  246. -- high flags: 0000
  247. -- rect: left=2 top=68 right=132 bottom=508
  248. -- title width / last selected line: 0
  249. -- icon id / first selected line: 0 / 0
  250. -- text alignment: 1
  251. -- font id: 0
  252. -- text size: 12
  253. -- style flags: 0
  254. -- line height: 16
  255. -- part name: Show Solution
  256. ----- HyperTalk script -----
  257. on mouseWithin
  258.   put "This area shows the current question." into cd fld text
  259. end mouseWithin
  260.  
  261.  
  262.  
  263.  
  264. -- part 21 (button)
  265. -- low flags: 00
  266. -- high flags: 0001
  267. -- rect: left=249 top=315 right=338 bottom=276
  268. -- title width / last selected line: 0
  269. -- icon id / first selected line: 0 / 0
  270. -- text alignment: 1
  271. -- font id: 0
  272. -- text size: 12
  273. -- style flags: 0
  274. -- line height: 16
  275. -- part name: Next
  276. ----- HyperTalk script -----
  277. on mouseUp
  278.  
  279. end mouseUp
  280.  
  281.  
  282.  
  283. -- part contents for background part 2
  284. ----- text -----
  285. Convert the following:
  286.  
  287. 4 gigabytes = ? kilobytes
  288.  
  289.  
  290. -- part contents for background part 9
  291. ----- text -----
  292. As in the last problem, bytes are a unit of measurement  to measure memory in a computer.  
  293.  
  294. To solve this question, the relationship between a kilobyte and a gigabyte must be solved; more precisely, the relationship between the kilo and giga factors. 
  295.  
  296. Kilo is 10 3 and giga is 10 9. That is a difference of six powers of 10 or 10 6.
  297.  
  298.       1 x 10 9  giga        
  299.       _____________    =  1 x 10 6
  300.       1 x 10 3  kilo
  301.  
  302.  
  303. From this ratio, we can see that there is a difference of six powers of 10, and since giga is larger than
  304. kilo, there must be 100,000 (six places) kilobytes for every gigabyte.
  305.  
  306.    1 gigabyte = 100,000 kilobytes
  307.  
  308.  
  309. Now the second ratio of comparison can be set up for this question:
  310.  
  311.  
  312.  1 gigabyte               4  gigabytes
  313.  ___________   =   ____________
  314.  100,000 kilobytes    x kilobytes
  315.  
  316.  
  317. Cross multiply and solve for x:
  318.  
  319.         x = (100,000) (4)
  320.         x = 400,000 kilobytes
  321.  
  322. 4 gigabytes = 400,000 kilobytes
  323.  
  324.  
  325.  
  326.  
  327.  
  328. -- part contents for background part 10
  329. ----- text -----
  330. Bytes are a unit of measurement to measure the amount of memory in a computer. Check the Chem 101 stack to find out that kilo is  10 3  and giga is  10 9.
  331.  
  332.  
  333. -- part contents for background part 8
  334. ----- text -----
  335. How to use...
  336.  
  337. -- part contents for card part 13
  338. ----- text -----
  339. This area shows the solution to the exercise. The 'Show Solution' button below controls this area.